home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / datacomm / 32 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  3.7 KB

  1. Path: newsfeed.internetmci.com!xmission!news
  2. From: jsburger@xmission.com (John S. Burger)
  3. Newsgroups: comp.sys.amiga.datacomm
  4. Subject: Re: Reconnect PPP after a crash ?
  5. Date: 2 Jan 1996 16:38:08 GMT
  6. Organization: XMission Internet (801 539 0900)
  7. Message-ID: <3352.6573T898T2458@xmission.com>
  8. References: <1878.6573T24T2823@xs4all.nl>
  9. NNTP-Posting-Host: slc103.xmission.com
  10. X-Newsreader: THOR 2.22 (Amiga;TCP/IP)
  11.  
  12.  
  13. On or about 31-Dec-95 04:35:52 avdsjw typed the following words about
  14. "Reconnect PPP after a crash ?".  My reply is thus...
  15.  
  16.  
  17.  a> Hi,
  18.  
  19.  a> I'm trying to figure out wether it's possible to reestablish a PPP-connect
  20.  a> after a crash/reset. I'm using the builtin-dialer of PPP 1.3, it logs on a
  21.  a> starts a script that sets up AmiTCP 4.1. Everything is alright untill some
  22.  a> program crashes and i have to restart my computer. Then when i try the scr
  23.  a> again the modem just hangs up and my connection is gone.
  24.  a> I hope someone has a solution or script.
  25.  
  26.  a> This is the script i use :
  27.  a> ****************************************************************
  28.  
  29.  a> .key IP,HN/K,DEST/K,MASK/K,GW/K,USER/K,SRV/S,
  30.  a> BOOTP/S,UMASK/K,S2CF/K,S2OPT/K,IFACE/K
  31.  a> ,DEBUG/S
  32.  a> .bra {
  33.  a> .ket }
  34.  
  35.  a> ; Default login name
  36.  a> .def USER  avdsjw
  37.  a> ; User's file creation mask
  38.  a> .def UMASK 022
  39.  
  40.  a> ; Log in
  41.  a> echo
  42.  a> echo login: {USER}
  43.  a> AmiTCP:bin/login -f {USER}
  44.  a> AmiTCP:bin/umask {UMASK}
  45.  
  46.  a> AmiTCP:bin/online ppp0
  47.  
  48.  a> IF NOT WARN
  49.  a>         AmiTCP:AmiTCP
  50.  a>         WaitForPort AMITCP
  51.  a>         ; Configure loop-back device
  52.  a>         AmiTCP:bin/ifconfig lo0 localhost
  53.  a>         ; Configure ppp0
  54.  a>         AmiTCP:bin/ifconfig ppp0 $ppp0IPLocal $ppp0IPRemote
  55.  a>         ; Add route to this host
  56.  a>         AmiTCP:bin/route add $ppp0IPLocal localhost
  57.  a>         ; Add route to the default gateway
  58.  a>         AmiTCP:bin/route add default $ppp0IPRemote
  59.  
  60.  a>         ; save IPADDRESSes to ENVARC to restart after crash ?
  61.  a>         copy ENV:ppp0IPLocal to ENVARC:
  62.  a>         copy ENV:ppp0IPRemote to ENVARC:
  63.  
  64.  a>         echo "Quering Name Server for the host name..."
  65.  a>         SetEnv HOSTNAME `AmiTCP:bin/hostname`
  66.  a>         echo "Host name : "$HOSTNAME
  67.  
  68.  a>         Assign >NIL: TCP: EXISTS
  69.  a>         IF WARN
  70.  a>                 Mount TCP: FROM AmiTCP:devs/inet-mountlist
  71.  a>         EndIF
  72.  a>         ; Start the internet `super server'
  73.  a>         Run <NIL: >NIL: AmiTCP:bin/inetd
  74.  
  75.  a> EndIF
  76.  
  77.  a> ***************************************************************
  78.  
  79.  
  80. Someware near the end of you script copy the environment variables
  81. ppp0IPLocal and pp0IPRemote to Env-Archive. These variables contain the IP
  82. addresses for the current session. That way when you have a crash and reboot
  83. they are copied back to ENV: where they are available to ppp.device. Next make
  84. sure you specify th CD option in your ppp0.config environment variable. This
  85. keeps the ppp.device from trying to redial if the modem is still on line. Then
  86. be sure your modem is set to ignore the DTR line so the modem does not hang up
  87. when you reboot.
  88.  
  89. It works here very well. I use this procedure daily. :<)
  90.  
  91. --
  92.       //        -= John =-    jsburger@xmission.com    BIX: jburger
  93.     \X/                                                                 Via
  94.                              Amateur Radio   KB0ES                       T
  95.  Amiga  2000                                                             H
  96.  A2630 A2632            John S. Burger       Hooper, UT                  O
  97. 2+14megs  RAM                                                            R
  98.   850meg HD             This message was composed on...                 2.22
  99.                             31-Dec-95 14:47:09 MST
  100. --
  101.  
  102. Failsafe pickup: Who's a nice girl like you doing in a place like this?
  103.  
  104.